Leat\Infrastructure\Services\WebhookManager B

Total Complexity 97
Dependencies 7
Dependents 4
Total lines 726
Lines of code 434
Logical lines of code 241
Comment lines 125
Methods 21
Properties 2

Methods 21

Method Rating Maintainability Complexity Lines of code
ensure_webhooks_installed()
D
29
29 136
cleanup_duplicate_webhooks()
A
44 11 42
sync_webhooks()
A
45 10 41
extract_action_data()
A
58 10 15
handle_webhook()
S
54 7 23
get_webhooks()
S
54 4 21
handle_voucher_updated()
S
58 2 19
handle_voucher_created()
S
58 2 19
handle_voucher_deleted()
S
58 2 19
handle_voucher_redeemed()
S
58 2 19
handle_giftcard_transaction_created()
S
58 2 18
acquire_sync_lock()
S
65 3 9
handle_contact_updated()
S
60 2 14
init()
S
68 2 7
check_webhooks()
S
68 2 7
fire_webhook_action()
S
68 2 7
__construct()
S
77 1 4
install_webhooks()
S
82 1 3
cleanup()
S
74 1 5
release_sync_lock()
S
81 1 3
get_required_webhooks()
S
81 1 3